package com.raising.sc.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "service-C")
public interface HelloClientInterface {

    /**
     * 在新版本中，Feign 已经可以解析 RestFul 标准的接口API，比如GET POST DELETE PATCH PUT
     * 旧版中
     * @RequestMapping(method = RequestMethod.GET, value = "/hello")
     * 或者是
     * @RequestMapping(method = RequestMethod.POST, value = "/hello")
     *
     * 早期文章：http://blog.battcn.com/2017/07/07/springcloud-feign-analysis/
     */
//     @ResponseStatus(HttpStatus.OK)
//     @GetMapping("/hello")
     @RequestMapping(method = RequestMethod.GET, value = "/hello")
     String findStudentByName(@RequestParam("name") String name);

}
